﻿@model MvcApplication6.Models.UpdateSaleModel

@{
    ViewBag.Title = "SaleAll";
}

<script src="../../Scripts/jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="../../Scripts/calendar.js" type="text/javascript"></script>
<script src="../../Content/includes/ckeditor/ckeditor.js" type="text/javascript"></script>
<link href="../../Content/includes/ckeditor/contents.css" rel="stylesheet" type="text/css"/>
<link href="../../Content/css/nn-styles.css" rel="stylesheet" type="text/css"/>


<div>
    <a style="margin-left:127px;margin-top:5px;" href="http://aptechpro.vn/"><b>Trang chủ</b></a>    
    <h1 class="ad-title"><center>Update Sale</center></h1>

     @using (Html.BeginForm("SaleAll", "Admin", FormMethod.Post, new { id = "add_news", name = "add_news", enctype = "multipart/form-data" }))
     {       
        @Html.AntiForgeryToken() <!--Chống giả lập yêu cầu -->
        @Html.ValidationSummary(true) <!-- hiện thị kiểm lỗi phía Server-->   

        <p>
            <label for="menu1"><b>Menu name:</b></label>
            @Html.TextBoxFor(model => model.NameMenu, new { name = "name", id = "name", disabled = "true", type = "text", style = "width:292px" })
            @Html.HiddenFor(model => model.MenuLv)
            @Html.HiddenFor(model => model.IdSale)
        </p>
        <p>
            <label for="Sale"><b>Giảm giá:</b></label>
            @Html.TextBoxFor(model => model.Sale, new { name = "nameSale", id = "nameSale", type = "number", style = "width:294px", maxlength = "100" })
            @Html.ValidationMessageFor(model => model.Sale)
        </p>
        <div class="btn-submit">
             <input type="submit" name="Command" class="btn_update" value="Update" />
        </div>
     }
</div><!-- end.content-->